import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-myc01',
  templateUrl: './myc01.component.html',
  styleUrls: ['./myc01.component.css']
})
export class Myc01Component implements OnInit {

  constructor() { }

  ngOnInit(): void {
  }

  name = "冰冰"
  age = 18

  printName(){
    console.log(this.name)
  }
}
